import { defHttp } from '/@/utils/http/axios';
const baseAPi = '/HDA/';

/**
 * @description: 查询历史数据
 */
export function getHDAHistory(data) {
  return defHttp.post({ url: `${baseAPi}Query`, data });
}

/**
 * @description: 修改配置文件
 */
export function setHDAConfig(data) {
  return defHttp.post({ url: `${baseAPi}SetHDAConfig`, data });
}

/**
 * @description: 获取配置文件
 */
export function getHDAConfig() {
  return defHttp.post({ url: `${baseAPi}GetIntergrationConfig` });
}
/**
 * @description: 获取数据库类型
 */
export function getDatabaseType() {
  return defHttp.post({ url: `${baseAPi}GetDatabaseType` });
}

/**
 * @description: 历史诊断
 */
export function recorddiagnosis(data) {
  return defHttp.post({ url: `${baseAPi}recorddiagnosis`, data });
}
/**
 * @description: 历史诊断新
 */
export function recorddiagnosisgroup(data) {
  return defHttp.post({ url: `${baseAPi}recorddiagnosisgroup`, data });
}

/**
 * @description: 删除关联存储
 */
export function deletealarmitem(data) {
  return defHttp.post({ url: `${baseAPi}deletealarmitem`, data });
}

/**
 * @description: 添加分组
 */
export function addgroup(data) {
  return defHttp.post({ url: `${baseAPi}addgroup`, data });
}

/**
 * @description: 删除分组
 */
export function deletegroup(data) {
  return defHttp.post({ url: `${baseAPi}deletegroup`, data });
}

/**
 * @description: 修改分组
 */
export function editgroup(data) {
  return defHttp.post({ url: `${baseAPi}editgroup`, data });
}

/**
 * @description: 保存配置文件
 */
export function saveconfig() {
  return defHttp.post({ url: `${baseAPi}saveconfig` });
}
/**
 * @description: 获取关联存储树
 */
export function getrelationtree(data) {
  return defHttp.post({ url: `${baseAPi}getrelationtree`, data });
}

/**
 * @description: 修改关联存储项
 */
export function editrelationitem(data) {
  return defHttp.post({ url: `${baseAPi}editrelationitem`, data });
}
/**
 * @description: 删除关联存储项
 */
export function deleterelationitem(data) {
  return defHttp.post({ url: `${baseAPi}deleterelationitem`, data });
}
/**
 * @description: 添加关联存储
 */
export function addrelationitem(data) {
  return defHttp.post({ url: `${baseAPi}addrelationitem`, data });
}

/**
 * @description: 获取关联存储项
 */
export function getrelationitem(data) {
  return defHttp.post({ url: `${baseAPi}getrelationitem`, data });
}
/**
 * @description: 获取储存信息
 */
export function gettags(data) {
  return defHttp.post({ url: `${baseAPi}gettags`, data });
}
/**
 * @description: 获取设备信息
 */
export function getdrivers(data) {
  return defHttp.post({ url: `${baseAPi}getdrivers`, data });
}
